package com.pethome.pet.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pethome.common.annotation.Excel;
import com.pethome.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 宠物品种对象 t_pet_kind
 * 
 * @author hjc
 * @date 2024-08-26
 */
@TableName(value = "t_pet_kind")
public class PetKind extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    @TableId("pet_kind_id")
    private Long petKindId;

    /** 物种 */
    @Excel(name = "物种")
    private Long petSpecies;

    /** 品种 */
    @Excel(name = "品种")
    private String petKind;

    /** 品种描述 */
    @Excel(name = "品种描述")
    private String petKindDesc;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date petKindCreateAt;

    public void setPetKindId(Long petKindId) 
    {
        this.petKindId = petKindId;
    }

    public Long getPetKindId() 
    {
        return petKindId;
    }
    public void setPetSpecies(Long petSpecies) 
    {
        this.petSpecies = petSpecies;
    }

    public Long getPetSpecies() 
    {
        return petSpecies;
    }
    public void setPetKind(String petKind) 
    {
        this.petKind = petKind;
    }

    public String getPetKind() 
    {
        return petKind;
    }
    public void setPetKindDesc(String petKindDesc) 
    {
        this.petKindDesc = petKindDesc;
    }

    public String getPetKindDesc() 
    {
        return petKindDesc;
    }
    public void setPetKindCreateAt(Date petKindCreateAt) 
    {
        this.petKindCreateAt = petKindCreateAt;
    }

    public Date getPetKindCreateAt() 
    {
        return petKindCreateAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("petKindId", getPetKindId())
            .append("petSpecies", getPetSpecies())
            .append("petKind", getPetKind())
            .append("petKindDesc", getPetKindDesc())
            .append("petKindCreateAt", getPetKindCreateAt())
            .toString();
    }
}
